#include <iostream>
using namespace std;

signed main()
{
	int num;
	cin>>num;
	if(num/100){
		int t = num/100;
		for(int i=0;i<t;i++){
			cout<<"B";
		}
		num = num%100;
	}
	if(num/10){
		int t = num/10;
		for(int i=0;i<t;i++){
			cout<<"S";
		}
		num = num%10;
	}
	if(num){
		for(int i=1;i<=num;i++){
			cout<<i;
		}
	}
	return 0;
}
